home *** CD-ROM | disk | FTP | other *** search
/ Unreal Tools / UnrealTools.iso / Unreal Script Tools / ScriptTools.iso / UnrealScriptIDEInstall.exe / UDKDevKitVSXSetupShell.msi / _5D317E5A5265C62872AD6121C53DA624 < prev    next >
Encoding:
Extensible Markup Language  |  2012-06-04  |  21.3 KB  |  282 lines

  1. ∩╗┐<!-- Copyright (c) Microsoft Corporation.  All rights reserved. -->
  2. <Grid xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3.       xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4.       xmlns:sp="clr-namespace:Microsoft.VisualStudio.PlatformUI;assembly=Microsoft.VisualStudio.Shell.StartPage"
  5.       xmlns:vs="clr-namespace:Microsoft.VisualStudio.PlatformUI;assembly=Microsoft.VisualStudio.Shell.10.0"
  6.       xmlns:vsfx="clr-namespace:Microsoft.VisualStudio.Shell;assembly=Microsoft.VisualStudio.Shell.10.0"
  7.       mc:Ignorable="d" 
  8.       xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
  9.       xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" d:DesignHeight="600" d:DesignWidth="800">
  10.  
  11.     <Grid.Resources>
  12.         <ResourceDictionary>
  13.             <ResourceDictionary.MergedDictionaries>
  14.                 <ResourceDictionary Source="/Microsoft.VisualStudio.Shell.StartPage;component/Styles/startpageresources.xaml" />
  15.             </ResourceDictionary.MergedDictionaries>
  16.         </ResourceDictionary>
  17.     </Grid.Resources>
  18.  
  19.     <Grid x:Name="LayoutRoot" Style="{DynamicResource StartPage.OuterGridStyle}">
  20.  
  21.         <Grid.ColumnDefinitions>
  22.             <!-- Left Hand Column -->
  23.             <!-- This column is just wide enough to fit the Command Buttons and Start Page Options.
  24.                  The Recent Project area is constrained to the width of the Commmand Buttons. -->
  25.             <ColumnDefinition MinWidth="{Binding ElementName=commandButtonsGrid, Path=ActualWidth}" Width="3*" MaxWidth="330" />
  26.             <!-- Gutter -->
  27.             <ColumnDefinition Width="6"/>
  28.             <!-- Allow main column to collapse to 0 -->
  29.             <ColumnDefinition Width="7*" MinWidth="0"/>
  30.         </Grid.ColumnDefinitions>
  31.  
  32.         <Grid.RowDefinitions>
  33.             <!-- Logo-->
  34.             <RowDefinition Height="130" />
  35.             <!-- Main Content Area -->
  36.             <RowDefinition Height="*"/>
  37.         </Grid.RowDefinitions>
  38.  
  39.         <!--Logo Image -->
  40.         <!--Note: To reference files relative to this XAML file, use syntax like the following: <Image Source="{sp:StartPageRelative myImage.png}" .../> -->
  41.         <Image Grid.ColumnSpan="3" Source="http://udk.com/elements/img/bg-body.jpg" HorizontalAlignment="Left" VerticalAlignment="Top" Width="1600" Height="325" Grid.RowSpan="2" Stretch="Fill" />
  42.         <Image Grid.ColumnSpan="3" Source="http://udk.com/elements/img/logo-udk.gif" HorizontalAlignment="Left" VerticalAlignment="Top" Width="1600" Grid.RowSpan="2" Stretch="None" Panel.ZIndex="1" Margin="50,6,0,0" />
  43.  
  44.         <!--Left Column-->
  45.         <Grid Width="Auto" Grid.Column="0" Grid.Row="1" Margin="15,-35,0,15" VerticalAlignment="Stretch">
  46.             <Grid.RowDefinitions>
  47.                 <!-- Command Buttons for New Projects -->
  48.                 <RowDefinition Height="Auto"/>
  49.                 <!-- MRU Row -->
  50.                 <RowDefinition Height="*"/>
  51.                 <!--Gutter at bottom of page -->
  52.                 <RowDefinition Height="Auto"/>
  53.             </Grid.RowDefinitions>
  54.  
  55.             <!-- Command Buttons -->
  56.             <Grid x:Name="commandButtonsGrid" MinWidth="270" Grid.Row="0" Margin="0,15,0,30" HorizontalAlignment="Left">
  57.                 <Grid.RowDefinitions>
  58.                     <RowDefinition Height="Auto"/>
  59.                     <RowDefinition Height="3"/>
  60.                     <RowDefinition Height="Auto"/>
  61.                     <RowDefinition Height="3"/>
  62.                     <RowDefinition Height="Auto"/>
  63.                 </Grid.RowDefinitions>
  64.  
  65.                 <vs:ImageButton 
  66.                     x:Uid="ConnectToTSButton"
  67.                     Margin="15,2,15,2"
  68.                     Width="Auto" 
  69.                     Content="Connect To Team Foundation Server"
  70.                     Visibility="{Binding Path=TeamFoundationClientSupported, Converter={StaticResource boolToVisibilityConverter}}"    
  71.                     Style="{DynamicResource StartPage.ProjectCommand.ButtonStyle}"
  72.                     Command="{x:Static sp:VSCommands.ExecuteCommand}" CommandParameter="Team.ConnecttoTeamFoundationServer"
  73.                     ImageNormal="pack://application:,,,/Microsoft.VisualStudio.Shell.StartPage;component/Images/StartPage/ConnectToTFS.png"
  74.                     ImageHover="pack://application:,,,/Microsoft.VisualStudio.Shell.StartPage;component/Images/StartPage/ConnectToTFSMouseOver.png"
  75.                     ImagePressed="pack://application:,,,/Microsoft.VisualStudio.Shell.StartPage;component/Images/StartPage/ConnectToTFSMouseDown.png">
  76.                 </vs:ImageButton>
  77.  
  78.                 <vs:ImageButton
  79.                     Grid.Row="2"
  80.                     x:Uid="NewProjectButton"
  81.                     Margin="15,2,0,2"
  82.                     Width="Auto" 
  83.                     Content="New File..."
  84.                     Style="{DynamicResource StartPage.ProjectCommand.ButtonStyle}"
  85.                     Command="{x:Static sp:VSCommands.ExecuteCommand}" CommandParameter="Project.AddNewItem"
  86.                     ImageNormal="pack://application:,,,/Microsoft.VisualStudio.Shell.StartPage;component/Images/StartPage/NewProject.png"
  87.                     ImageHover="pack://application:,,,/Microsoft.VisualStudio.Shell.StartPage;component/Images/StartPage/NewProjectMouseOver.png"
  88.                     ImagePressed="pack://application:,,,/Microsoft.VisualStudio.Shell.StartPage;component/Images/StartPage/NewProjectMouseDown.png">
  89.                 </vs:ImageButton>
  90.  
  91.                 <vs:ImageButton
  92.                     Grid.Row="4"
  93.                     x:Uid="OpenProjectButton"
  94.                     Margin="15,2,0,2"
  95.                     Width="Auto"        
  96.                     Content="Add Existing File..."
  97.                     Style="{DynamicResource StartPage.ProjectCommand.ButtonStyle}"
  98.                     Command="{x:Static sp:VSCommands.ExecuteCommand}" CommandParameter="Project.AddExistingItem"
  99.                     ImageNormal="pack://application:,,,/Microsoft.VisualStudio.Shell.StartPage;component/Images/StartPage/OpenProject.png"
  100.                     ImageHover="pack://application:,,,/Microsoft.VisualStudio.Shell.StartPage;component/Images/StartPage/OpenProjectMouseOver.png"
  101.                     ImagePressed="pack://application:,,,/Microsoft.VisualStudio.Shell.StartPage;component/Images/StartPage/OpenProjectMouseDown.png">
  102.                 </vs:ImageButton>
  103.  
  104.             </Grid>
  105.  
  106.  
  107.             <!-- Reserved section Section -->
  108.             <Grid Grid.Row="1" HorizontalAlignment="Left" Width="Auto">
  109.                 <Grid.RowDefinitions>
  110.                     <!-- Heading -->
  111.                     <RowDefinition Height="Auto" />
  112.                     <!-- MRU Container -->
  113.                     <RowDefinition Height="*" />
  114.                 </Grid.RowDefinitions>
  115.  
  116.                 <!-- Recent Projects Heading-->
  117.                 <StackPanel Grid.Row="0" Margin="0,0,0,10" Orientation="Horizontal">
  118.                     <Path VerticalAlignment="Center" Margin="6,0,0,-4" Width="Auto" Height="1" Stretch="Fill" StrokeThickness="1" StrokeLineJoin="Round" Stroke="{DynamicResource {x:Static vsfx:VsBrushes.StartPageSeparatorKey}}" Data="F1 M 0.5,0.5L 199.5,0.5"/>
  119.                 </StackPanel>
  120.  
  121.                 <StackPanel Grid.Row="1" Margin="0,0,0,10" Orientation="Horizontal">
  122.  
  123.                     <Button Margin="0,0,20,1" Style="{DynamicResource StartPage.RSS.TitleTextStyle}" Command="{x:Static sp:VSCommands.Browse}" CommandParameter="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=MGUCHCSX5TJBJ&lc=GB&item_name=UDK%20Development%20Kit%20Addons%20Development&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHostedGuest" Content="You can support future development by donating!" AutomationProperties.Name="You can support future development by donating!" VerticalAlignment="Center"/>
  124.  
  125.                 </StackPanel>
  126.  
  127.             </Grid>
  128.  
  129.             <!-- Start Page Options -->
  130.             <StackPanel Margin="0,5,0,0" Grid.Column="0" Grid.Row="2">
  131.                 <CheckBox x:Uid="AutoClose_Option" Content="Close page after project load" IsChecked="{Binding ClosePageOnOpenProject, Mode=TwoWay}" Margin="0,0,2,0"/>
  132.                 <CheckBox x:Uid="ShowOnStartUp_Option" Content="Show page on startup" IsChecked="{Binding ShowPageAtStartup, Mode=TwoWay}" Margin="0,2,0,0"/>
  133.             </StackPanel>
  134.         </Grid>
  135.  
  136.         <!--Center Content-->
  137.         <Grid Grid.Column="2" Grid.Row="1" Margin="0,-35,15,15">
  138.             <TabControl Style="{DynamicResource StartPage.TabControlStyle}" SelectedIndex="{Binding SelectedTabItemIndex, Mode=TwoWay}">
  139.  
  140.                 <!-- Get Started Content Area 
  141.                 The purpose of this content area is to highlight some of the useful places where users can get help/information/resources for their projects-->
  142.                 <TabItem Header="Latest News" Style="{DynamicResource StartPage.TabItemStyle}" x:Uid="RSSFeed_Tab">
  143.                     <Grid Margin="12,12,0,6" VerticalAlignment="Stretch" >
  144.                         <Grid.RowDefinitions>
  145.                             <!--Heading-->
  146.                             <RowDefinition Height="Auto" />
  147.                             <!-- Main Content Area -->
  148.                             <RowDefinition Height="0.65*" />
  149.                         </Grid.RowDefinitions>
  150.  
  151.                         <!-- Heading -->
  152.                         <Grid Grid.Row="0" Margin="0,0,0,6" Grid.RowSpan="1" HorizontalAlignment="Stretch" Grid.ColumnSpan="2">
  153.                             <Grid.ColumnDefinitions>
  154.                                 <ColumnDefinition Width="Auto"/>
  155.                                 <ColumnDefinition Width="*"/>
  156.                                 <ColumnDefinition Width="Auto"/>
  157.                             </Grid.ColumnDefinitions>
  158.  
  159.                             <TextBlock Grid.Column="0" x:Uid="RssFeed" Text="RSS feed:" Style="{DynamicResource StartPage.HeadingTextStyle}" Margin="2,0,10,3"/>
  160.                             <TextBox Grid.Column="1" x:Name="RSS_TextField_Source" Text="{Binding Rss.RssFeed, Mode=OneWay}" Margin="0,0,2,0"/>
  161.                             <vs:ImageButton Grid.Column="2" Margin="0,0,2,0"
  162.                                 Focusable="True"
  163.                                 Command="{x:Static sp:RssCommands.SetUrl}" CommandParameter="{Binding Text, ElementName=RSS_TextField_Source}"
  164.                                 ImageNormal="pack://application:,,,/Microsoft.VisualStudio.Shell.StartPage;component/Images/StartPage/RSSButton.png"
  165.                                 ImageHover="pack://application:,,,/Microsoft.VisualStudio.Shell.StartPage;component/Images/StartPage/RSSButtonMouseOver.png"
  166.                                 ImagePressed="pack://application:,,,/Microsoft.VisualStudio.Shell.StartPage;component/Images/StartPage/RSSButtonMouseDown.png">
  167.                             </vs:ImageButton>
  168.                         </Grid>
  169.  
  170.                         <ContentControl Grid.Row="1" Content="{Binding}" KeyboardNavigation.IsTabStop="False" >
  171.                             <ContentControl.ContentTemplate>
  172.                                 <DataTemplate>
  173.                                     <Grid>
  174.                                         <ItemsControl x:Name="Displaying" DataContext="{Binding Rss.Content, Converter={StaticResource StringToXmlDataProviderConverter}}" ItemsSource="{Binding XPath=/rss/channel/item}" Background="Transparent" KeyboardNavigation.IsTabStop="False" >
  175.                                             <ItemsControl.Template>
  176.                                                 <ControlTemplate TargetType="ItemsControl" >
  177.                                                     <ScrollViewer x:Name="RSSItems_ScrollViewer" CanContentScroll="True" Margin="3,4,0,0" VerticalScrollBarVisibility="Auto" VerticalAlignment="Stretch" Style="{DynamicResource StartPage.ScrollViewerStyle}" >
  178.                                                         <ItemsPresenter/>
  179.                                                     </ScrollViewer>
  180.                                                 </ControlTemplate>
  181.                                             </ItemsControl.Template>
  182.                                             <ItemsControl.ItemsPanel>
  183.                                                 <ItemsPanelTemplate>
  184.                                                     <VirtualizingStackPanel/>
  185.                                                 </ItemsPanelTemplate>
  186.                                             </ItemsControl.ItemsPanel>
  187.                                             <ItemsControl.ItemTemplate>
  188.                                                 <DataTemplate>
  189.                                                     <Grid Height="Auto" Width="Auto" Margin="0,0,20,19">
  190.                                                         <Grid.ColumnDefinitions>
  191.                                                             <ColumnDefinition Width="Auto"/>
  192.                                                             <ColumnDefinition/>
  193.                                                         </Grid.ColumnDefinitions>
  194.                                                         <Grid.RowDefinitions>
  195.                                                             <RowDefinition/>
  196.                                                             <RowDefinition/>
  197.                                                         </Grid.RowDefinitions>
  198.                                                         <Button Margin="0,0,20,1" Style="{DynamicResource StartPage.RSS.TitleTextStyle}" Command="{x:Static sp:VSCommands.Browse}" CommandParameter="{Binding XPath=link}" Content="{Binding XPath=title}" AutomationProperties.Name="{Binding XPath=title}" VerticalAlignment="Center"/>
  199.                                                         <TextBlock Margin="3,0,8,1" Grid.Column="1" Text="{Binding XPath=pubDate}"  Style="{DynamicResource StartPage.RSS.DateTextStyle}" HorizontalAlignment="Right" VerticalAlignment="Center" TextTrimming="CharacterEllipsis" Padding="0,5,0,4"/>
  200.                                                         <TextBlock Grid.Row="1" Grid.ColumnSpan="2" Style="{DynamicResource StartPage.NormalTextStyle}" Margin="0,-1,0,0" Text="{Binding XPath=description, Converter={StaticResource StringToStringWithoutHypertextTagsConverter}}" TextTrimming="CharacterEllipsis" MaxHeight="50" />
  201.                                                     </Grid>
  202.                                                 </DataTemplate>
  203.                                             </ItemsControl.ItemTemplate>
  204.                                         </ItemsControl>
  205.                                         <Grid>
  206.                                             <StackPanel x:Name="OptIn">
  207.                                                 <TextBlock x:Name="OptIn_Text" x:Uid="Rss_OptIn_Text" Style="{DynamicResource StartPage.NormalTextStyle}" Margin="3">
  208.                                                     Click the button to subscribe to an RSS feed that provides updated information about Microsoft products and technologies. To view the Microsoft privacy policy, on the Help menu, click Online Privacy Statement.
  209.                                                 </TextBlock>
  210.                                                 <Button x:Name="OptIn_Button" x:Uid="Rss_OptIn_Button" Content="Enable RSS Feed" Command="{x:Static sp:RssCommands.EnableDownload}" HorizontalAlignment="Left" Margin="0,6,0,0" />
  211.                                             </StackPanel>
  212.  
  213.                                             <TextBlock x:Name="Loading" x:Uid="Rss_Loading" Style="{DynamicResource StartPage.NormalTextStyle}" Margin="3">
  214.                                                 Updating the news channel...
  215.                                             </TextBlock>
  216.  
  217.                                             <StackPanel x:Name="Prompt">
  218.                                                 <TextBlock x:Name="Prompt_Text" x:Uid="Rss_Prompt_Text" Style="{DynamicResource StartPage.NormalTextStyle}" Margin="3">
  219.                                                     Please enter your login credentials to enable this RSS feed.
  220.                                                 </TextBlock>
  221.                                                 <Button x:Name="Prompt_Button" x:Uid="Rss_Prompt_Button" Content="Enter Credentials" Command="{x:Static sp:RssCommands.PromptForCredentials}" HorizontalAlignment="Left" Margin="0,6,0,0" />
  222.                                             </StackPanel>
  223.  
  224.                                             <TextBlock x:Name="Error" x:Uid="Rss_Error" Style="{DynamicResource StartPage.NormalTextStyle}" Margin="3">
  225.                                                 The current news channel might not be a valid RSS feed, or your internet connection might be unavailable.
  226.                                             </TextBlock>
  227.                                         </Grid>
  228.                                     </Grid>
  229.                                     <DataTemplate.Triggers>
  230.                                         <!-- Changing disabled state from "Hidden" to "Collapsed" to work around DevDiv 517937.
  231.                                          This assumes that all the overlapped controls in the outer Grid are the same size.
  232.                                          Currently they are all TextBlocks but beware of resizing issues if this changes-->
  233.                                         <DataTrigger Binding="{Binding Path=Rss.Status}" Value="DownloadDisabled">
  234.                                             <Setter TargetName="OptIn"       Property="Visibility" Value="Visible" />
  235.                                             <Setter TargetName="Loading"     Property="Visibility" Value="Collapsed" />
  236.                                             <Setter TargetName="Displaying"  Property="Visibility" Value="Collapsed" />
  237.                                             <Setter TargetName="Prompt"      Property="Visibility" Value="Collapsed" />
  238.                                             <Setter TargetName="Error"       Property="Visibility" Value="Collapsed" />
  239.                                         </DataTrigger>
  240.  
  241.                                         <DataTrigger Binding="{Binding Path=Rss.Status}" Value="Loading">
  242.                                             <Setter TargetName="OptIn"       Property="Visibility" Value="Collapsed" />
  243.                                             <Setter TargetName="Loading"     Property="Visibility" Value="Visible" />
  244.                                             <Setter TargetName="Displaying"  Property="Visibility" Value="Collapsed" />
  245.                                             <Setter TargetName="Prompt"      Property="Visibility" Value="Collapsed" />
  246.                                             <Setter TargetName="Error"       Property="Visibility" Value="Collapsed" />
  247.                                         </DataTrigger>
  248.  
  249.                                         <DataTrigger Binding="{Binding Path=Rss.Status}" Value="Displaying">
  250.                                             <Setter TargetName="OptIn"       Property="Visibility" Value="Collapsed" />
  251.                                             <Setter TargetName="Loading"     Property="Visibility" Value="Collapsed" />
  252.                                             <Setter TargetName="Displaying"  Property="Visibility" Value="Visible" />
  253.                                             <Setter TargetName="Prompt"      Property="Visibility" Value="Collapsed" />
  254.                                             <Setter TargetName="Error"       Property="Visibility" Value="Collapsed" />
  255.                                         </DataTrigger>
  256.  
  257.                                         <DataTrigger Binding="{Binding Path=Rss.Status}" Value="PromptForCredentials">
  258.                                             <Setter TargetName="OptIn"       Property="Visibility" Value="Collapsed" />
  259.                                             <Setter TargetName="Loading"     Property="Visibility" Value="Collapsed" />
  260.                                             <Setter TargetName="Displaying"  Property="Visibility" Value="Collapsed" />
  261.                                             <Setter TargetName="Prompt"      Property="Visibility" Value="Visible" />
  262.                                             <Setter TargetName="Error"       Property="Visibility" Value="Collapsed" />
  263.                                         </DataTrigger>
  264.  
  265.                                         <DataTrigger Binding="{Binding Path=Rss.Status}" Value="Error">
  266.                                             <Setter TargetName="OptIn"       Property="Visibility" Value="Collapsed" />
  267.                                             <Setter TargetName="Loading"     Property="Visibility" Value="Collapsed" />
  268.                                             <Setter TargetName="Displaying"  Property="Visibility" Value="Collapsed" />
  269.                                             <Setter TargetName="Prompt"      Property="Visibility" Value="Collapsed" />
  270.                                             <Setter TargetName="Error"       Property="Visibility" Value="Visible" />
  271.                                         </DataTrigger>
  272.                                     </DataTemplate.Triggers>
  273.                                 </DataTemplate>
  274.                             </ContentControl.ContentTemplate>
  275.                         </ContentControl>
  276.                     </Grid>
  277.                 </TabItem>
  278.             </TabControl>
  279.         </Grid>
  280.     </Grid>
  281. </Grid>
  282.